﻿using OPM.Models;

namespace OPM.Class
{
    public static class WSA
    {
        #region ManageLOV / Admin

        public static string DeleteCaseObjective(string page_id, string id)
        {
            var s = new ServiceManageLOV.ManageLOVSoapClient();
            var resultStr = s.DeleteCaseObjective(U.Token, page_id, id);
            return resultStr;
        }

        public static string DeleteCaseStatus(string page_id, string id)
        {
            var s = new ServiceManageLOV.ManageLOVSoapClient();
            var resultStr = s.DeleteCaseStatus(U.Token, page_id, id);
            return resultStr;
        }

        public static CaseObjective[] GetCaseObjective(string is_thai)
        {
            var s = new ServiceManageLOV.ManageLOVSoapClient();
            var resultStr = s.GetCaseObjective(U.Token, U.is_thai);
            CaseObjective[] result = Newtonsoft.Json.JsonConvert.DeserializeObject<CaseObjective[]>(resultStr);
            return result;
        }

        ///xxxxxxxxxxxxxxxxxx ยังไม่ได้ทำ

        #endregion

    }
}